<?php if($tpl=='list'):?>
	<?php $this->load->view('admin_head.php');?>
	<div id="main_head" class="main_head">

	<table class="menu">
	<tr><td>
	<a href="<?=site_aurl($tablefunc)?>" class="current"><?=lang('func_'.$tablefunc)?></a>
	</td></tr>
	</table>

	<table cellSpacing=0 width="100%" class="content_list"><thead>
	<tr>
	<th width=4%  align="left"><input type="checkbox" onclick="checkAll(this)"></th>
	<th width=5%  align="left"><?=lang('id')?></th>
	<th width=15% align="left"><?=lang('company')?></th>
    <th width=11% align="left"><?=lang('brand')?></th>
    <th width=9%  align="left"><?=lang('mname')?></th>
	<th width=10%  align="left"><?=lang('position')?></th>
    <th width=10%  align="left"><?=lang('phone')?></th>
    <th width=10%  align="left"><?=lang('email')?></th>
	<th width=10%  align="left"><?=lang('weixin')?></th>
	<th width=10% align="left"><?=lang('addtime')?></th>
	<th width=6%  align="left"><?=lang('operate')?></th>
	</tr>
	</thead>
	</table>
	</div>
	<form name="formlist" id="formlist" action="<?=site_aurl($tablefunc)?>" method="post">
	<input type="hidden" name="action" id="action" value="<?=site_aurl($tablefunc)?>">
	<div id="main" class="main">
	<table cellSpacing=0 width="100%" class="content_list">
	<tbody id="content_list"><?php if (isset($liststr)): ?><?=$liststr?><?php endif; ?></tbody>
	</table>
	</div>
	</form>
	<div class="main_foot">
	<table><tr><td>
	<div class="func"><?php if (isset($funcstr)): ?><?=$funcstr?><?php endif; ?></div>
	</td><td align="right">
	<div class="page"><?php if (isset($pagestr)): ?><?=$pagestr?><?php endif; ?></div>
	</td></tr></table>
	</div>
	<?php $this->load->view('admin_foot.php');?>
    
  <?php elseif($tpl=='view'):?> <!--弹出框-->
      <div id="main_view" class="main_view" style="width:400px;">
      <table cellSpacing=0 width="100%" class="content_view">
      <tr><td><?=lang('company')?>：</td><td><?=isset($view['company'])?$view['company']:''?></td></tr>
      <tr><td><?=lang('brand')?>：</td><td><?=isset($view['brand'])?$view['brand']:''?></td></tr>
      <tr><td><?=lang('mname')?>：</td><td><?=isset($view['name'])?$view['name']:''?></td></tr>
      <tr><td><?=lang('position')?>：</td><td><?=isset($view['position'])?$view['position']:''?></td></tr>
      <tr><td><?=lang('phone')?>：</td><td><?=isset($view['phone'])?$view['phone']:''?></td></tr>
      <tr><td><?=lang('email')?>：</td><td><?=isset($view['email'])?$view['email']:''?></td></tr>
      <tr><td><?=lang('weixin')?>：</td><td><?=isset($view['weixin'])?$view['weixin']:''?></td></tr>
      <tr><td><?=lang('needs')?>：</td><td><?=isset($view['needs'])?$view['needs']:''?></td></tr>
      <tr><td><?=lang('addtime')?>：</td><td><?=isset($view['addtime'])?date('Y-m-d H:i:s',$view['addtime']):''?></td></tr>
      </table>
      </div>
  <?php endif;?>